import Vue from 'vue'
import axios from 'axios'

import App from './App'
import router from './router'
import store from './store'
import './plugins'
import './assets/style/index.scss'
import './element'

if (!process.env.IS_WEB) {
    Vue.use(require('vue-electron'));
    /**
     * 主窗口对象
     * @type {Electron.BrowserWindow}
     */
    Vue.prototype.$mainWindow = Vue.prototype.$electron.remote.getCurrentWindow();
}

Vue.http = Vue.prototype.$http = axios;

Vue.config.productionTip = false;

new Vue({
    components: {App},
    router,
    store,
    template: '<App/>'
}).$mount('#app');
